var Generator = require('yeoman-generator');
module.exports = class extends Generator {
 constructor(args, opts) {
    super(args, opts);
  }
  collecting() {

  }
  creating() {
    this.fs.copyTpl(
        this.templatePath('package.json'),
        this.destinationPath('package.json'),
       { title: 'Templating with Yeoman' }
      )
    this.npmInstall([
        'webpack',
        'webpack-cli',
        'webpack-dev-server',
        '@babel/core',
        '@babel/preset-env',
        '@babel/plugin-transform-react-jsx',
        'babel-loader',
        'mocha',
        'nyc',
        '@istanbuljs/nyc-config-babel',
        'babel-plugin-istanbul'
    ], { 'save-dev': true });
    
  }
};